package com.jpetrinet.samples;

import com.jpetrinet.core.PetriNet;
import com.jpetrinet.lowlevel.PlaceTransitionPetriNet;
import com.jpetrinet.lowlevel.Transition;

public class Teste1 {

	public static void main(String[] args) {
	
		PetriNet pn = new PlaceTransitionPetriNet("C:\\Users\\Dezani\\Desktop\\TrafficLight.xml");
		
		Transition t = (Transition)pn.getPages().get("Page 1").getObjects().get("T1");
		t.setAction(new MyAction());
		
		pn.simulate(PetriNet.OutputType.Console);
	}	
}
